package team.southcat.wsyygh.user.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import team.southcat.wsyygh.common.result.Result;
import team.southcat.wsyygh.model.pojo.user.Admin;

@FeignClient("service-user")
@Component
public interface AdminFeignClient {
    @GetMapping("/admin/user/getAdminById/{id}")
    public Result getAdminById(@PathVariable("id") Integer id);

    @PostMapping("/admin/user/addAdmin")
    public Result addAdmin(@RequestBody Admin admin);
}
